package com.bjqg.bjqg01.bjqg.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.bjqg.bjqg01.bjqg.fragment.BaseFragment;

/**
 * Created by bjqg01 on 2017/12/14.
 */

public class ReportFragmentAdapter extends FragmentPagerAdapter{

    private final String[] titles;

    public ReportFragmentAdapter(FragmentManager fm, String[] mTitles) {
        super(fm);
        titles = mTitles;
    }

    @Override
    public Fragment getItem(int position) {

        BaseFragment baseFragment=null;
        switch (position){
            case 0:
//                baseFragment = new FactoryFragment();
                break;
            case 1:
//                baseFragment = new ManufactorFragment();
        }
        return baseFragment;
    }

    @Override
    public int getCount() {
        return titles.length;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return titles[position];
    }
}
